home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
winlib1.zip
/
EXAMPLES.ZIP
/
EXAM24.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-05
|
761b
|
25 lines
#include <window.h>
#define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
#define REVERSE CREATE_VIDEO_ATTRIBUTE(white,black)
WPOINTER w;
char *s1 = "This string will wrap around to the next line\n";
char *s2 = "This escape code will ring the bell \a";
int i = 3;
double j = 5.6;
main()
{
WindowInitializeSystem();
WindowSaveInitial(0);
w = WindowInitialize(BORDER,1,1,30,10,NORM,NORM,SINGLEBOX);
WindowOpen(w);
WindowDisplay(w,1,NOEFFECT);
WindowPrintfAttr(w,REVERSE,"3+2 is equal to %d\n",3+2);
GET_KEY();
WindowPrintfAttr(w,REVERSE,"i is equal to %d\nj is equal to %lf\n",i,j);
GET_KEY();
WindowPrintfAttr(w,REVERSE,s1);
GET_KEY();
WindowPrintfAttr(w,REVERSE,s2);
}